package com.libraryManage.service;

import com.libraryManage.commons.utils.ResponseEntity;
import com.libraryManage.commons.utils.jwt.AccountProfile;
import com.libraryManage.entity.LoginLogDo;
import com.libraryManage.vo.ManagerVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface LoginService {
    /**
     * 管理员登录接口
     * @param vo
     * @param response
     * @return
     */
    ResponseEntity<AccountProfile> managerLogin(ManagerVo vo,
                                                HttpServletResponse response,
                                                HttpServletRequest request);

    /**
     * 获取登录日志
     * @param loginLogDo
     * @return
     */
    ResponseEntity<List<LoginLogDo>> getLogData(LoginLogDo loginLogDo);
}
